package com.zzq.account.entities.po.converter;

import com.zzq.account.entities.dto.AccountDTO;
import com.zzq.account.entities.po.AccountPO;
import com.zzq.account.entities.vo.AccountVO;
import org.mapstruct.Mapper;

/**
 * @author zzq
 * @date 2020/4/13 2:55 下午
 */
@Mapper(componentModel = "spring")
public interface AccountConverter {
    /**
     * AccountVO converter AccountDTO
     *
     * @param accountVO AccountVO
     * @return AccountDTO
     */
    AccountDTO toAccountDTO(AccountVO accountVO);

    /**
     * AccountDTO converter AccountPO
     *
     * @param accountDTO AccountDTO
     * @return AccountPO
     */
    AccountPO toAccountPO(AccountDTO accountDTO);

    /**
     * AccountPO converter AccountDTO
     *
     * @param accountPO AccountPO
     * @return AccountDTO
     */
    AccountDTO toAccountDTO(AccountPO accountPO);
}
